require "migration_helpers"
class CreatePublishers < ActiveRecord::Migration
  extend MigrationHelpers
  def self.up
    create_table :publishers do |t|
      t.column :title, :string
      t.column :city, :string
      t.column :meta_id, :integer
    end
    foreign_key(:publishers, :meta_id, :metas)
  end

  def self.down
    drop_table :publishers
  end
end
